<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Document</title>
    <style>
        .box {
            width: 300px;
            height: 300px;
            background-color: #02a6b5;
        }
    </style>
</head>
<body>
<div class="box"></div>
<script src="js/echarts.min.js"></script>
<script>
    var myChart = echarts.init(document.querySelector('.box'));
    var option = {
        title: {
            text: '111'
        },
        tooltip: {},
        legend: {
            data: ['xxx']
        },
        xAxis: {
            data: ['1', '2', '3', '4', '5']
        },
        yAxis: {},
        series: [
            {
                name: 'xxx',
                type: 'bar',
                data: [5, 20, 36, 10, 10, 20]
            }
        ]
    };
    myChart.setOption(option);
</script>
</body>
</html>